# How to Install and Use Weston (Wayland) on Void Linux (without SystemD)

```
sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`
```

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file:
```
mkdir -p ~/.config
nano ~/.config/weston.ini
```

Then put something like this below. Change as you need.

```
[core]
xwayland=true

[keyboard]
keymap_layout=gb

[output]
name=LVDS1
mode=preferred
#mode=1680x1050
#transform=90

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
path=/usr/bin/firefox
```

Then run from a tty:

```
weston-launch
```

If any error is shown for XDG_RUNTIME_DIR, then run:

```
mkdir -p /tmp/westontmp
export XDG_RUNTIME_DIR=/tmp/westontmp
```

Press Ctrl+Alt+Backspace to logout. Super+Tab to switch between apps. Other [basic keyboard shortcuts here](https://wiki.archlinux.org/index.php/Wayland#Usage).

Ref:
- https://wiki.archlinux.org/index.php/Wayland